<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>产品一级分类客户销售数量汇总</title>
<style type="text/css">
h3{background:#ccc;padding-left:12px;}
.tab_b{border-left:1px solid #8CCD8C;border-top:1px solid #8CCD8C;border-collapse: collapse;font-size:14px;width:800px;text-align:left}
.tab_b td,.tab_b th{border-bottom:1px solid #8CCD8C;border-right:1px solid #8CCD8C;padding-left:10px;line-height:21px;}
.tab_b th{text-align:center;}
</style>
</head>
<body>
<h3 align="center">${s.timeFrom} 至 ${s.timeTo} 产品一级分类客户销售数量汇总</h3>
<p align="center"><a href="${pageContext.request.contextPath}/report?_method=excelProductCateSummary&timeFrom=${s.timeFrom}&timeTo=${s.timeTo}&fileName=yijifenlei"><font color="blue">导出数据到Excel表中</font></a></p>
<table class="tab_b" align="center">
<c:if test="${!empty custs}">
<c:forEach items="${custs}" var="cust" varStatus="i">
<c:if test="${i.index==0}">
<thead>
<tr>
<th width="8%">客户ID</th>
<th width="25%">客户</th>
<th width="10%">合计</th>
<c:forEach items="${cust.cateValues}" var="headCate">
<th>${headCate}</th>
</c:forEach>
</tr>
</thead>
</c:if>
<c:if test="${i.index!=0}">
<tr>
<td width="8%">${cust.customerid}</td>
<td width="25%">${cust.cname}</td>
<td width="10%">${cust.cateSum}</td>
<c:forEach items="${cust.cateValues}" var="cateValue">
<td>${cateValue}</td>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:if>
</table>
</body>
</html>
